import  request  from "@/http/request.js";

export function statisticsTotal(){
    return request({
        url:'/blog/index/statisticsTotal',
        method:'get'
    })
}

export function selectTenAccess(){
    return request({
        url:'/blog/index/selectTenAccess',
        method:'get'
    })
}

export function selectHotAtricle(){
    return request({
        url:'/blog/index/selectHotArticle',
        method:'get'
    })
}

export function selectDraftNums(){
    return request({
        url:'/blog/index/selectDraftNums',
        method:'get'
    })
}

export function selectTitleData(){
    return request({
        url:"/blog/index/selectTitleData",
        method:'get'
    })
}

export function getSettingList(data){
    return request({
        url:'/blog/setting/getSettingList',
        method:'post',
        data
    })
}

export function getSettingDetail(data){
    return request({
        url:'/blog/setting/getSettingDetail?settingId='+data,
        method:'get'
    })
}

export function updateSettingDetail(data){
    return request({
        url:'/blog/setting/updateSettingDetail',
        method:'post',
        data
    })
}

// 年度总结

export function getSummaryList(data){
    return request({
        url:'/blog/summary/getSummaryList',
        method:'post',
        data
    })
}

export function addSummary(data){
    return request({
        url:"/blog/summary/addSummary",
        method:'post',
        data
    })
}

export function getSummaryDetail(data){
    return request({
        url:'/blog/summary/getSummaryDetail?summaryId='+data,
        method:'get'
    })
}

export function updateSummaryDetail(data){
    return request({
        url:'/blog/summary/updateSummaryDetail',
        method:'post',
        data
    })
}

export function deleteSummary(data){
    return request({
        url:'/blog/summary/deleteSummary?summaryId='+data,
        method:'get'
    })
}